<template>
<h1>下拉选框组件</h1>
  <el-select v-model="city" style="width: 50%">
    <el-option label="长春" value="ch"></el-option>
    <el-option label="成都" value="cd"></el-option>
    <el-option label="广州" value="gz"></el-option>
    <el-option label="北京" value="bj"></el-option>
  </el-select>
  <h4>您所在的城市为{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city = ref('bj');
</script>

<style scoped>

</style>